package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Shop;
import cn.wolfcode.trip.base.query.ShopQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Shop record);

    Shop selectByPrimaryKey(Long id);

    List<Shop> selectAll();

    int updateByPrimaryKey(Shop record);

    List<Shop> selectForList(ShopQueryObject qo);

    void updateByState(Shop shop);

    Shop selectByUserid(Long userid);

    void spendMoney(@Param("money") Integer money,@Param("userid") Long userid);

}